<?php
namespace app\model;
class FinancialLog extends Common
{
    protected $autoWriteTimestamp = true;
    const RECHARGE = 1;//充值
    const WITHDRAW_FROZE = 2;//提现冻结
    const TRADE = 3; //合约交易

    const WITHDRAW_APPROVED = 4;//提现通过
    const WITHDRAW_REJECTED = 5; //提现拒绝
    const WITHDRAW_FEE = 6; //提现手续非
    const COMMISSION = 7; //充值返佣
    public function member()
    {
        return $this->hasOne(Member::class,"id",'member_id')->field("id,email");
    }

    public function coin()
    {
        return $this->hasOne(PayCoins::class,"id",'coin_id')->field("id,coin_name");
    }
}